package com.huawei.fakedouyin.data;


public  class VideoInfo {

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    private  String videoUrl;
    private  long duration;
    private  String videoName;
    private  int width;
    private  int height;

    private String videoId;


    public VideoInfo(
            String url,
            long duration,
            int width,
            int height) {

        this.videoUrl = url;

        this.duration = (duration < 1 ? 1 : duration);

        this.width = width;

        this.height = height;
    }

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    @Override
    public String toString() {
        return "VideoInfo{" +
                "videoUrl='" + videoUrl + '\'' +
                ", duration=" + duration +
                ", videoName='" + videoName + '\'' +
                ", width=" + width +
                ", height=" + height +
                ", videoId='" + videoId + '\'' +
                '}';
    }
}
